package com.microptech.servicebusiness.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "repository-service")
public interface RepositoryService {

    @GetMapping("/repository/reduce")
    public String reduce(@RequestParam("uid") int uid, @RequestParam("goodsId") int goodsId,@RequestParam("amount") int amount);
}
